set(ProjectName "WorldNetClientPlugin")
file(GLOB WorldNetClientPluginCC *.cc)

file(GLOB WorldNetClientPluginHH *.h)

add_library(WorldNetClientPlugin STATIC
	${WorldNetClientPluginCC}
	${WorldNetClientPluginHH})

add_dependencies(WorldNetClientPlugin Protocol)
	
set_target_properties( WorldNetClientPlugin PROPERTIES OUTPUT_NAME_DEBUG "WorldNetClientPlugin")
set_target_properties( WorldNetClientPlugin PROPERTIES PREFIX "")

add_definitions(-DELPP_NO_DEFAULT_LOG_FILE)

if(NOT MSVC)
	target_link_libraries(WorldNetClientPlugin -static-libstdc++)
endif()
target_link_libraries(WorldNetClientPlugin Protocol)

set_target_properties(WorldNetClientPlugin PROPERTIES OUTPUT_NAME_DEBUG "WorldNetClientPlugin")
set_target_properties(WorldNetClientPlugin PROPERTIES PREFIX "")
set_target_properties(WorldNetClientPlugin PROPERTIES 
	ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})